package com.ruoyi.dingtalk.model;

import cn.hutool.json.JSONUtil;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

@EqualsAndHashCode(callSuper = true)
@Data
@ToString
public class BaseResponse extends BaseModel {

    private String result;

    public <T> T getResult(Class<T> clazz) {
        return JSONUtil.toBean(result, clazz);
    }
}
